package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 ds_device
 * 
 * @author ruoyi
 * @date 2024-06-14
 */
public class DsDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备ID */
    private Long id;

    /** 设备类型ID */
    @Excel(name = "设备类型ID")
    private Long deviceTypeId;

    /** 设备序列号 */
    @Excel(name = "设备序列号")
    private String sn;

    /** 设备安装位置 */
    @Excel(name = "设备安装位置")
    private String location;

    /** 安装日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "安装日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date installationDate;

    /** 设备当前状态 */
    @Excel(name = "设备当前状态")
    private Long status;

    /** 备注信息 */
    @Excel(name = "备注信息")
    private String remarks;
    @Excel(name = "车辆图片路径")
    private String vehicleImage;

    public String getVehicleImage() {
        return vehicleImage;
    }

    public void setVehicleImage(String vehicleImage) {
        this.vehicleImage = vehicleImage;
    }

    private DsDeviceType deviceType;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public DsDeviceType getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(DsDeviceType deviceType) {
        this.deviceType = deviceType;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceTypeId(Long deviceTypeId) 
    {
        this.deviceTypeId = deviceTypeId;
    }

    public Long getDeviceTypeId() 
    {
        return deviceTypeId;
    }
    public void setSn(String sn) 
    {
        this.sn = sn;
    }

    public String getSn() 
    {
        return sn;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setInstallationDate(Date installationDate) 
    {
        this.installationDate = installationDate;
    }

    public Date getInstallationDate() 
    {
        return installationDate;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceTypeId", getDeviceTypeId())
            .append("sn", getSn())
            .append("location", getLocation())
            .append("installationDate", getInstallationDate())
            .append("status", getStatus())
            .append("remarks", getRemarks())
            .toString();
    }
}
